package com.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.TongjiDao;
import com.pojo.Archive;
import com.util.sqlSessionFactory;

public class TongjiService {
	SqlSession sql = sqlSessionFactory.getSqlSession();
	TongjiDao dao = sql.getMapper(TongjiDao.class);

	public List<Map> tongjishangchuan() {
		return dao.tongjishangchuan();
	}

	public List<Archive> zjtjst() {
		return dao.zjtjst();
	}

	public List<Archive> zuijinlook(@Param("user_id") String user_id) {
		return dao.zuijinlook(user_id);
	}

	public List<Map> timesc(@Param("date1") String date1,
			@Param("date2") String date2) {
		return dao.timesc(date1, date2);
	}
}
